﻿using PLCWpfTest.ViewModels;
using System.Windows.Controls;
using YWM;

namespace PLCWpfTest.Views
{
    /// <summary>
    /// RecipeManagementPage.xaml 的交互逻辑
    /// </summary>
    public partial class RecipeManagementPage : Page
    {
        public RecipeManagementPage()
        {
            InitializeComponent();
            DataContext = YApp.Resolve<RecipeManagementViewModel>();
        }

        private void GroupDataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            e.Row.Header = e.Row.GetIndex() + 1;
        }
    }
}
